#include "Card.h"

Card::Card(Card::Rank r, Card::Suit s) : m_rank(r), m_suit(s) {

}

// 获取点数
Card::Rank Card::getRank() const {
    return m_rank;
}

Card::Suit Card::getSuit() const {
    return m_suit;
}

void Card::setRank(Rank r) {
    m_rank = r;
}

void Card::setSuit(Suit s) {
    m_suit = s;
}

bool Card::operator<(const Card& other) const {
    if (this->m_rank != other.m_rank) {
        return this->m_rank < other.m_rank;
    }
    return this->m_suit < other.m_suit;
}
